<!DOCTYPE html>
<html>
<head>
<title>关键字回复报表</title> <#include "../../commonUse.html"/>
<!-- 列表页面单独引用，非列表页面不要引用  begin -->
<link rel="stylesheet" href="${ctx.contextPath}/css/home_v1.css" />
<!-- 列表页面单独引用，非列表页面不要引用 end -->

	
<script type="text/javascript">
	function exportRpt() {
		//location.href = ctp + "/rptController/exportRpt.shtml?type=keywordRpt";
	}
	
	$(function(){
		showLoading();
		makeTime();
		setTimeout(function(){
			closeLoading();
		},2000);
	});
	
	function getMinDate(){
		var beginDate = $("#endTime").val();
		var dd = new Date(); 
		dd.setDate(new Date(beginDate).getDate() - 6);//获取AddDayCount天后的日期 
		var y = dd.getFullYear(); 
		var m = dd.getMonth()+1;//获取当前月份的日期 
		var d = dd.getDate(); 
		return y+"-"+m+"-"+d; 
	}

	function makeTime(){
		var dd = new Date(); 
		dd.setDate(dd.getDate() - 7);//获取AddDayCount天后的日期 
		var y = dd.getFullYear(); 
		var m = dd.getMonth()+1;//获取当前月份的日期 
		var d = dd.getDate(); 
		$("#beginTime").val(y+"-"+m+"-"+d); 
		
		var dd1 = new Date(); 
		dd1.setDate(dd1.getDate() - 1);//获取AddDayCount天后的日期 
		var y1 = dd1.getFullYear(); 
		var m1 = dd1.getMonth()+1;//获取当前月份的日期 
		var d1 = dd1.getDate(); 
		$("#endTime").val(y1+"-"+m1+"-"+d1); 
	}
</script>
</head>
<body onload="initRep();">
	<div class="home">
		<div class="home-content">
			<div class="home-main">
				<!-- <div class="main-title">报表管理>关键字回复报表</div> -->
				<div class="main-organzation" style="padding-left: 0px;">
					<!--查询条件开始  -->
					<div class="organtion-search-title">
						<form id='form1'>
							<div class="search-input-show">
								<label>区域:</label> <input class="text" id="areaName" type="text"
									readonly value="" style="width: 150px;" onclick="showMenu();" />
								<input class="text" id="areaCode" name="areaCode" type="hidden"
									style="width: 150px;" />
								<div id="menuContent" class="menuContent"
									style="display: none; position: absolute;">
									<ul id="treeDemo" class="ztree"
										style="margin-top: 0; width: 150px; height: 300px;"></ul>
								</div>
							</div>

							<div class="search-input-show">
								<label>时间区间：</label> <input readonly="readonly" name="beginTime"
										id="beginTime" type="text" class="search_input_sc Wdate" class="text"
										onclick="WdatePicker({maxDate:'#F{$dp.$D(\'endTime\')}'||'%y-%M-{%d-1}'})" />
							</div>
							<div class="search-input-show">
								<label>--</label> <input readonly="readonly" name="endTime"
										id="endTime" type="text" class="search_input_sc Wdate" class="text"
										onclick="WdatePicker({minDate:'#F{$dp.$D(\'beginTime\')}',maxDate:'%y-%M-{%d-1}'})" />
							</div>
							<div class="search-input-btn" onclick="initRep();">查询</div>
							<div class="search-input-btn" onclick="exportRpt();">导出</div>
						</form>
					</div>
					<!--查询条件结束  -->

					<div class="organzation-list">
						<!-- <div class="list-title">
							<span id="upTitle"></span> <span class="title-type"></span>
							<div class="del-employee like-btn" onclick="userDel();">
								<img src="${ctx.contextPath}/images/home_v1/del-home-btn.png" />
								<span>删除</span>
							</div>
						</div> -->

						<div id="ntable" style="width:100%; height: 550px; ">
						
						</div>
	
					</div>

				</div>

			</div>

			<div class="home-footer"></div>

		</div>
	</div>
</body>
<script
	src="${ctx.contextPath}/pages/system/report/js/rpt_area_tree_quary.js"></script>
<script
	src="${ctx.contextPath}/js/echarts/echarts.js"></script>	
<script
	src="${ctx.contextPath}/pages/system/report/js/keywordRpt.js"></script>
	
</html>
